<template>
    <div>
        <div class="page flex ">
            <div class="search">
                <search>
                    <slot name="left-slot">
                        <slot></slot>
                    </slot>
                </search>
                
            </div>
            <div class="right flex unified-flex-align">
                <slot name="right-slot"></slot>
            </div>
        </div>
    </div>
</template>

<script>
    import search from '../search/search.vue'
    export default {
        components: {
            search
        },
        props: {
            title: {
                type: String,
                default: "标题"
            },
            background: {
                type: String,
                default: "#ffffff"
            },
            color: {
                type: String,
                default: "#000"
            }
        }

    }
</script>

<style scoped="scoped">
    
    .page {

        width: 100%;
        height: 70px;
        background-color: #fff;
        display: flex;
        flex-direction: row;
    }

    .right {
        width: 60%;
        height: 100%;
        justify-content: flex-end;
        padding-right: 15px;
    }

    .search {
        flex: 1;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 10px 0px;
        box-sizing: border-box;
        padding-left: 15px;
    }
</style>
